Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Added move query functionality to Heihachi frame data bot #23

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

MarquisSimmons
Copy link
Contributor

@MarquisSimmons MarquisSimmons commented Sep 22, 2024

What:

  • Added query functionality to search for moves by their frame data
  • Updated character_command_factory to support looking up characters by their aliases without /fd

Why:

To extend the functionality of the bot. During development I realized that the alias lookup was only enabled for the /fd command. From my personal experience most people just use /character so I enabled aliases there as well.

How:

  • Added query functionality to search for moves by their frame data

I added a new move search command /ms that takes in a condition (>, <, == etc.) frame_value, situation (hit, block, startup). This data is all used to traverse the character's move-list json to find applicable moves.

I noticed some of the data was malformed so I also created a _sanitize_frame_data function to clean those up before comparison.

  • Updated character_command_factory to support looking up characters by their aliases without '/fd'

I flatted the aliases from CHARACTER_ALIAS and combined them with the list of CharacterNames

Searching moves by frames
image

image
image

Short hand character lookup by alias
image

@MarquisSimmons MarquisSimmons changed the title Added query functionality to Heihachi frame data bot Feature: Added query functionality to Heihachi frame data bot Sep 22, 2024
@MarquisSimmons MarquisSimmons changed the title Feature: Added query functionality to Heihachi frame data bot Feature: Added move query functionality to Heihachi frame data bot Sep 22, 2024
@TLNBS2405
Copy link
Owner

@MarquisSimmons I don't have intellij installed anymore x_x and it seems the check is failing, would you be able to fix it?

@MarquisSimmons
Copy link
Contributor Author

MarquisSimmons commented Sep 22, 2024

@MarquisSimmons I don't have intellij installed anymore x_x and it seems the check is failing, would you be able to fix it?

Yep Ill look into it, is there a way for me to also run the checks locally?

- Updated character_command_factory to suppot looking up characters by their aliases without '/fd'
@MarquisSimmons
Copy link
Contributor Author

MarquisSimmons commented Sep 22, 2024

@TLNBS2405 looks like we should be all set!

@TLNBS2405 TLNBS2405 merged commit 74f2bcb into TLNBS2405:master Sep 22, 2024
1 check passed
@MarquisSimmons MarquisSimmons deleted the marquis/frame-query branch September 22, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants